package com.zhnl.zhnl_web.mapper;

import com.zhnl.zhnl_web.bean.BstBusTrendsPojo;
import com.zhnl.zhnl_web.bean.BstGoodsConsultImgPojo;
import com.zhnl.zhnl_web.bean.BstGoodsGategoryBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 罗兴发
 * @data 2025/7/24 9:20
 * @description：分类-持久层
 */
@Mapper
public interface BstGoodsCategoryMapper {

    List<BstGoodsGategoryBean> getGoodsCategoryByName(@Param("name") String name);
    List<BstGoodsGategoryBean> getBstGoodsGategoryIsP0();

    List<BstGoodsGategoryBean> getBstGoodsGategoryNotP0();

    Integer getBusTrendsCountByParam(@Param("title") String title,
                                     @Param("sign") Integer sign);

    List<BstBusTrendsPojo> getBusTrendsByParam(@Param("title")String title,
                                               @Param("sign") Integer sign,
                                               @Param("startPage") Integer startPage,
                                               @Param("size") Integer size);

    int updateHotById(@Param("list") List<Integer> list);

    List<BstGoodsGategoryBean> getGoodsCategoryByHot();

    List<BstGoodsGategoryBean> getGoodsCategoryList();

    List<BstGoodsConsultImgPojo> getGoodsGategoryImgById(@Param("id") Integer id);
}
